﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Brjostagjof.Models.NewsArticleViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Brjóstagjöf - <%: Model.newsArticle.Title %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="GreinItarlegt">
        <h1><%: Model.newsArticle.Title %></h1>
        <div>
            <%= Model.newsArticle.Body %>
             <br />
            <p class="strikNedst"> <%= Model.newsArticle.FullName %> setti inn þessa frétt </p>
            <br />
            <!--Facebook Like--><p><iframe src="http://www.facebook.com/plugins/like.php?href=Brjostagjof/Views/Home/SynaFrett/<%:Model.newsArticle.ID %>&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowtransparency="true"></iframe> </p>
        </div>
        <p>
            <%: Html.ActionLink("Til Baka í Fréttalista", "Frettir") %> | 
            <% if (Model.newsArticle.InserterID == Page.User.Identity.Name || Roles.IsUserInRole("Administrator"))
               { %>       
                <%: Html.ActionLink("Breyta", "BreytaFrettaGrein", new { id = Model.newsArticle.ID })%> |
                <%: Html.ActionLink("Eyða", "EydaFrettaGrein", new { id = Model.newsArticle.ID })%>
            <%} %>
        </p>
    </div>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Actions" runat="server" >
    <%Html.RenderPartial("PartialViews/Actions", "Frett"); %>
</asp:Content>


